/**
 * 
 */
package org.xelnaga.defiler.business.contentlet;

import org.jboss.seam.wiki.core.action.prefs.WikiPreferences;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.xelnaga.defiler.business.PreferenceAPI;

/**
 * @author qijb
 *
 */
@Component
public class PreferenceAPIImpl implements PreferenceAPI {
	@Autowired
	private WikiPreferences wikiPreferences;

	/* (non-Javadoc)
	 * @see org.xelnaga.defiler.business.contentlet.PrefercePAI#getThemeName()
	 */
	@Override
	public String getThemeName() {
		return wikiPreferences.getThemeName();
	}

	/* (non-Javadoc)
	 * @see org.xelnaga.defiler.business.contentlet.PrefercePAI#getRenderPermlinks()
	 */
	@Override
	public Boolean getRenderPermlinks() {
		return wikiPreferences.getRenderPermlinks();
	}

	/* (non-Javadoc)
	 * @see org.xelnaga.defiler.business.contentlet.PrefercePAI#getPermlinkSuffix()
	 */
	@Override
	public String getPermlinkSuffix() {
		return wikiPreferences.getPermlinkSuffix();
	}

	/* (non-Javadoc)
	 * @see org.xelnaga.defiler.business.contentlet.PrefercePAI#getAtSymbolReplacement()
	 */
	@Override
	public String getAtSymbolReplacement() {
		return wikiPreferences.getAtSymbolReplacement();
	}

	/* (non-Javadoc)
	 * @see org.xelnaga.defiler.business.contentlet.PrefercePAI#getDefaultBusinessUnitId()
	 */
	@Override
	public Long getDefaultBusinessUnitId() {
		return wikiPreferences.getDefaultBusinessUnitId();
	}

	/* (non-Javadoc)
	 * @see org.xelnaga.defiler.business.contentlet.PrefercePAI#getDefaultTemplateId()
	 */
	@Override
	public Long getDefaultTemplateId() {
		return wikiPreferences.getDefaultTemplateId();
	}

	public String getAdminAppImgFileDirectory() {
		return wikiPreferences.getAdminAppImgFileDirectory();
	}

	/* (non-Javadoc)
	 * @see org.xelnaga.defiler.business.contentlet.PrefercePAI#getWebAppImgFileDirectory()
	 */
	@Override
	public String getWebAppImgFileDirectory() {
		return wikiPreferences.getWebAppImgFileDirectory();
	}

	public String getAdminImgHttpBasePath() {
		return wikiPreferences.getAdminImgHttpBasePath();
	}

	/* (non-Javadoc)
	 * @see org.xelnaga.defiler.business.contentlet.PrefercePAI#getWebAppImgHttpBasePath()
	 */
	@Override
	public String getWebAppImgHttpBasePath() {
		return wikiPreferences.getWebAppImgHttpBasePath();
	}

	/* (non-Javadoc)
	 * @see org.xelnaga.defiler.business.contentlet.PrefercePAI#getWebAppNoImgHttpPath()
	 */
	@Override
	public String getWebAppNoImgHttpPath() {
		return wikiPreferences.getWebAppNoImgHttpPath();
	}

	/* (non-Javadoc)
	 * @see org.xelnaga.defiler.business.contentlet.PrefercePAI#getHtmlPageFileDest()
	 */
	@Override
	public String getHtmlPageFileDest() {
		return wikiPreferences.getHtmlPageFileDest();
	}

	/* (non-Javadoc)
	 * @see org.xelnaga.defiler.business.contentlet.PrefercePAI#getTemplateFileDest()
	 */
	@Override
	public String getTemplateFileDest() {
		return wikiPreferences.getTemplateFileDest();
	}
	
}
